<div id="role-manage-view">
  <div class="page">
    <div class="al-list-container">
      <form class="form-horizontal al-search-container" role="form">
        <div class="form-group">
          <label class="col-sm-1 control-label">名称</label>
          <div class="col-sm-3">
            <input class="form-control" ng-model="search.name" type="text" placeholder=""/>
          </div>
          <label class="col-sm-1 control-label">状态</label>
          <div class="col-sm-3">
            <nobr>
              <label class="ui-radio">
                <input name="status" ng-value="true" type="radio" ng-model="search.enabled">
                <span>启用</span>
              </label>
            </nobr>
            <nobr>
              <label class="ui-radio">
                <input name="status" ng-value="false" type="radio" ng-model="search.enabled">
                <span>禁用</span>
              </label>
            </nobr>
          </div>
          <div class="col-sm-1">
            <button type="button" ng-click="queryData()" class="btn btn-success al-float-right">查询</button>
          </div>
          <div class="col-sm-1">
            <button type="button" ng-click="resetSearch()" class="btn btn-default">重置</button>
          </div>
          <div class="col-sm-1 col-sm-offset-1">
            <button type="button" class="btn btn-primary" ng-click="newRole()">新建</button>
          </div>
        </div>
      </form>
      <table ng-table="tableParams"
             class="table  table-bordered table-striped table-condensed al-table-container">
        <thead>
        <tr>
          <td>参数值</td>
          <td>名称</td>
          <td>描述</td>
          <td>状态</td>
          <td>操作</td>
        </tr>
        </thead>
        <tbody>
        <tr ng-repeat="item in $data">
          <td>{{item.key}}</td>
          <td>{{item.name}}</td>
          <td>{{item.remark}}</td>
          <td>{{item.enabled|constantTransfer:enabledList}}</td>
          <!--<td>{{item.createTime|dateTransfer:'YYYY年MM月DD日 HH:mm:ss'}}</td>-->
          <td>
            <button class="btn btn-warning btn-sm" ng-click="editRole(item)">编辑</button>
            <!--<button class="btn btn-danger btn-sm al-fl-rt"-->
                    <!--ng-confirm-click="确定要执行删除操作吗？"-->
                    <!--ng-click="deleteRole(item)">删除</button>-->
            <button class="btn btn-info btn-sm" ng-click="setRole(item)">配置</button>
          </td>
        </tr>
        </tbody>
      </table>
    </div>
  </div>
</div>
